package top.glkj.hms.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import top.glkj.hms.entity.User;
import top.glkj.hms.entity.VipUser;

/**
 * @author : xgl
 * @version : 0.0.1
 * @date :2021/1/2 1:06
 */
public interface VipUserDao extends JpaRepository<VipUser,Long> , JpaSpecificationExecutor<VipUser> {
    /**
     * 根据账号获取vip用户
     * @param user
     * @return
     */
    public VipUser findVipUsersByUser(User user);
}
